package cn.itcast.article.dao;

import cn.itcast.article.po.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author yangshen
 * @date 2020/3/17 11:09
 */
public interface CommentRepository extends MongoRepository<Comment, String> {   //此处使用的动态代理对象为(ctrl+alt+d 鼠标点击)：SimpleMongoRepository

    Page<Comment> findByParentid(String parentid, Pageable pageable);

}
